<?php
$this->pageTitle=Yii::app()->name . ' - 商户注册';
?>

<div id="coupons">
    <div id="content" class="coupons-box clear">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>更改信息 <?php echo $model->username; ?></h2>
					</div>
                <div class="sect">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'partner-form',
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model); ?>

						<div class="field username">
							<?php echo $form->labelEx($model,'username',array('for'=>"signup-username")); ?>
							<?php echo $form->textField($model,'username',array('size'=>30,'maxlength'=>32,'id'=>"signup-username",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'username'); ?>
							<span class="hint">填写4-16个字符，一个汉字为两个字符</span>
						</div>
						<div class="field password">
							<?php echo $form->labelEx($model,'password',array('for'=>"signup-password")); ?>
							<?php echo $form->passwordField($model,'password',array('size'=>30,'maxlength'=>32,'id'=>"signup-password",'class'=>"f-input",'value'=>"")); ?>
							<?php echo $form->error($model,'password'); ?>
							<span class="hint">为了您的帐号安全，建议密码最少设置为6个字符以上</span>
						</div>
						<div class="field password">
							<?php echo $form->labelEx($model,'repassword',array('for'=>"signup-password-confirm")); ?>
							<?php echo $form->passwordField($model,'repassword',array('size'=>30,'maxlength'=>32,'id'=>"signup-password-confirm",'class'=>"f-input")); ?>
							<?php echo $form->error($model,'repassword'); ?>
						</div>
						<div class="field">
							<?php echo $form->labelEx($model,'title'); ?>
							<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>128)); ?>
							<?php echo $form->error($model,'title'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'city_id'); ?>
							<?php echo $form->dropDownList($model,'city_id',Category::cityname())//,array('1'=>'���','2'=>'����',); ?>
							<?php echo $form->error($model,'city_id'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'bank_name'); ?>
							<?php echo $form->textField($model,'bank_name',array('size'=>60,'maxlength'=>128)); ?>
							<?php echo $form->error($model,'bank_name'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'bank_no'); ?>
							<?php echo $form->textField($model,'bank_no',array('size'=>60,'maxlength'=>128)); ?>
							<?php echo $form->error($model,'bank_no'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'bank_user'); ?>
							<?php echo $form->textField($model,'bank_user',array('size'=>60,'maxlength'=>128)); ?>
							<?php echo $form->error($model,'bank_user'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'location'); ?>
							<?php echo $form->textArea($model,'location',array('rows'=>6, 'cols'=>50)); ?>
							<?php echo $form->error($model,'location'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'contact'); ?>
							<?php echo $form->textField($model,'contact',array('size'=>32,'maxlength'=>32)); ?>
							<?php echo $form->error($model,'contact'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'phone'); ?>
							<?php echo $form->textField($model,'phone',array('size'=>18,'maxlength'=>18)); ?>
							<?php echo $form->error($model,'phone'); ?>
							<span class="hint">电话号码是我们联系您的最重要方式</span>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'address'); ?>
							<?php echo $form->textField($model,'address',array('size'=>60,'maxlength'=>128)); ?>
							<?php echo $form->error($model,'address'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'other'); ?>
							<?php echo $form->textArea($model,'other',array('rows'=>6, 'cols'=>50)); ?>
							<?php echo $form->error($model,'other'); ?>
						</div>

						<div class="field">
							<?php echo $form->labelEx($model,'mobile'); ?>
							<?php echo $form->textField($model,'mobile',array('size'=>12,'maxlength'=>12)); ?>
							<?php echo $form->error($model,'mobile'); ?>
						</div>
						<div class="act">
							<?php echo CHtml::submitButton('保存',array('id'=>"signup-submit",'class'=>"formbutton")); ?>
						</div>
					<?php $this->endWidget(); ?>
				</div>
			</div>
			<div class="box-bottom"></div>
		</div>
	</div>
</div>
	<div id="sidebar">
		<div class="sbox">
			<div class="sbox-top"></div>
			<div class="sbox-content">
				<div class="side-tip">
					<h2>菜单</h2>
					<p><a href="<?php echo $this->createUrl('use'); ?>">用户消费</a></p>
					<p><a href="<?php echo $this->createUrl('teamview'); ?>">项目发货</a></p>
					<p><a href="<?php echo $this->createUrl('couponview'); ?>">我的优惠券</a></p>
					<p><?php echo CHtml::link('更改信息',array('update', 'id'=>Yii::app()->getComponent('partner')->id))?></p>
				</div>
			</div>
			<div class="sbox-bottom"></div>
		</div>
	</div>
